﻿<%sub diarylist%>
  <table width="1000px" border="1">
    <!-- MSTableType="nolayout" -->
    <tr>
      <td valign="top" width="25%">
        标题
      </td>
      <td valign="top" width="5%">
        作者
      </td>
      <td valign="top" width="15%">
        时间
      </td>
      <td valign="top" width="10%">
        缓存文件
      </td>
      <td valign="top" width="10%">
        分类
      </td>
      <td valign="top" width="20%">
        标签
      </td>
      <td valign="top" colspan="2" width="15%">
        操作
      </td>
    </tr>
    <% On Error Resume Next
        for i=0 to diarynum
            i_=diarynum-i 
            diary_tittle=diaryl.childNodes.item(i_).childNodes.item(1).text
            diary_path=diaryl.childNodes.item(i_).childNodes.item(2).text
            diary_time=diaryl.childNodes.item(i_).childNodes.item(3).text
            diary_tags=diaryl.childNodes.item(i_).attributes.item(0).value
            diary_kind=diaryl.childNodes.item(i_).attributes.item(1).value
            diary_un=diaryl.childNodes.item(i_).attributes.item(2).value 
%>
      <tr>
        <td valign="top" width="25%">
          <%=diary_tittle%>
        </td>
        <td valign="top" width="5%">
          <%=diary_un%>
        </td>
        <td valign="top" width="15%">
          <%=diary_time%>
        </td>
        <td valign="top" width="10%">
          <%=diary_path%>
        </td>
        <td valign="top" width="10%">
          <%=diary_kind%>
        </td>
        <td valign="top" width="20%">
          <%=diary_tags%>
        </td>
        <td valign="top" width="7%">
          <a href="?Fmenu=deletediary&delid=<%=i_%>">
            删除
          </a>
        </td>
        <td valign="top" width="7%">
          编辑
        </td>
      </tr>
      <%next%>
        <tr>
          <td valign="top" colspan="8">
            共计
            <%=diarynum+1%>
              篇日志
          </td>
        </tr>
  </table>
  <%if request.querystring("act")="re" then%>
    <script language="javascript">
      location.href = "?Fmenu=diarylist"
    </script>
    <%end if
    end sub%>
      <%sub kindlist%>
        <a href="?Fmenu=kindlist&title=分类">
          分类设置
        </a>
        |
        <a href="?Fmenu=newkind&title=分类">
          添加分类
        </a>
        <hr width="1000px" align="left">
        <table border="1" width="800" id="table1">
          <tr>
            <td>
              名称
            </td>
            <td width="40">
              操作
            </td>
          </tr>
          <%for i=0 to dknum%>
            <tr>
              <td>
                <%=diarykind.childNodes.item(i).text%>
              </td>
              <td width="40">
                <a href="?Fmenu=deletekind&delid=<%=i%>">
                  删除
                </a>
              </td>
            </tr>
            <%next%>
              <tr>
                <td colspan="2">
                  共
                  <%=dknum+1%>
                    个分类
                </td>
              </tr>
        </table>
        <%if request.querystring("act")="re" then%>
          <script language="javascript">
            location.href = "?Fmenu=kindlist"
          </script>
          <%end if
          end sub%>